<%inherit file="base.html"/>
<h2>
    ${_('Edit picture')}
</h2>
<div id="mainPanel">
    <div class="section" id="info">
        <h3>
            ${_('Picture')}
            <span class="inlineNav">
                <a href="http://my.hexlabel.net/">^ ${_('Back')}</a>
            </span>
        </h3>
        <form id="pictureForm" action="/person/edit_picture" method="post" enctype="multipart/form-data">
            <dl class="picture">
                <dt></dt>
                <dd>
                    <img src="${profile_fields['generic']['picture']['values'][0]['value']}" alt="${_('Profile picture')}"/>
                </dd>
                <dt>${_('Delete')}</dt>
                <dd>
                    <input type="checkbox" class="checkbox" name="action" id="action" value="delete"/>
                </dd>
                <dt>${_('Upload new')}</dt>
                <dd>
                    <input type="file" class="file" name="${profile_fields['generic']['picture']['values'][0]['id']}" id="${profile_fields['generic']['picture']['values'][0]['id']}" />
                </dd>
            </dl>
            <dl>
                <dd class="buttons">
                    <input type="submit" class="submit default" value="${_('Save')}"/>
                </dd>
                <dd class="buttons cancel">
                    <a href="http://my.hexlabel.net/" class="button">${_('Cancel')}</a>
                </dd>
            </dl>
            <div class="clr"><br/></div>
        </form>
    </div>
</div>

<!-- defs -->
<%def name="title()">P2P Fusion - Peerscape | ${profile_fields['generic']['name']['values'][0]['value']} | ${_('Edit picture')}</%def>
<%def name="body_class()">
    % if is_self:
  	    person self dialog
    % else:
  	    person dialog
    % endif
</%def>
